from urllib.parse import urlparse
import  requests
headers = {
    'content-type': 'application/json',
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0',
    'Host':'localhost:3000',
    'Upgrade-Insecure-Requests':'1',
    'Connection':'keep-alive',
    'If-None-Match':'W/"1e-2l1hGdx7u1a+2JZ0bhVSZMh6PKQ"',
    'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'Cookie':'Webstorm-fba2a04=9e821c58-894a-41fa-ac63-56668cc53c64; connect.sid=s%3AZjKsc3Wcr_wdsrvV9_qleQ66T8706g3M.vIY2DwRXDUcmKlEj9ppIC6ddl72Q9PgphWvtH2cAn3M'
           }
payload={'id':'31340'}
response2=requests.get("http://localhost:3000/api/get?id=123",params=payload,headers=headers)
print(response2.text)
print(response2.history)
print(response2.status_code)